<include file="Common@Backend/header" />

<!-- page heading start-->
<div class="page-heading">
<h3>
    {$breadcrumb.A}
</h3>
<ul class="breadcrumb">
    <li>
        {$breadcrumb.M}
    </li>
    <li>
        {$breadcrumb.C}
    </li>
    <li class="active"> {$breadcrumb.A}  </li>
</ul>
</div>
<!-- page heading end-->

<!--body wrapper start-->
<div class="wrapper">
<div class="row">
    <div class="col-sm-12">
        <section class="panel">
            <header class="panel-heading">
                {$title}
            </header>
            <div class="panel-body">
                <div class="clearfix">
                    <div class="btn-group">
                        <a class="btn btn-primary" href="{$index}" style="margin-right: 30px;">
                           <i class="fa fa-eye"> 所有订单 </i>
                        </a>
                        <a class="btn btn-primary" href="{$index}?status=1" style="margin-right: 30px;">
                           <i class="fa fa-eye"> 未付款订单 </i>
                        </a>
                        <a class="btn btn-primary" href="{$index}?status=2" style="margin-right: 30px;">
                           <i class="fa fa-eye"> 未发货订单 </i>
                        </a>
                        <a class="btn btn-primary" href="{$index}?status=3" style="margin-right: 30px;">
                           <i class="fa fa-eye"> 未收货订单 </i>
                        </a>
                    </div>
                </div>
                <div class="space15"></div>
                <section id="unseen" style="margin-top: 25px;">
                    <table class="table table-bordered table-striped table-condensed">
                        <thead>
                        <tr>
                            <th style="width: 550px;">商品</th>
                            <th>单价</th>
                            <th style="width: 80px;">商品数量</th>
                            <th>实付款</th>
                            <th>订单状态</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <volist name="order" id="vo" >
                        <tbody>
                            <tr>
                                <td colspan="6" class="Order_form_time">订单号：{$vo.id} 下单时间：{$vo.add_time} </td>
                            </tr>
                            <tr>
                                <td colspan="3">
                                    <table class="Order_product_style">
                                        <tbody>
                                            <volist name="vo['product']" id="voo" >
                                                <tr>
                                                    <td>
                                                        <div class="product_name clearfix" style="width: 530px;">
                                                            <a href="#" class="product_img">
                                                                <img src="STRING_PRODUCT/{$voo.photos}" width="60px" height="60px"></a>
                                                            <a>{$voo.merchandise}</a>
                                                            <!-- <p class="specification">礼盒装20个/盒</p> -->
                                                        </div>
                                                    </td>
                                                    <td>{$voo.price}</td>
                                                    <td style="width: 80px;text-align: center;">{$voo.number}</td>
                                                </tr>
                                            </volist>
                                        </tbody>
                                    </table>
                                </td>   
                                <td class="split_line" style="text-align: center;vertical-align: middle;">{$vo.total}</td>
                                <td class="split_line" style="color: red;text-align: center;vertical-align: middle;">
                                <if condition="$vo.status eq 1"> 未付款
                                <elseif condition="$vo.status eq 2"/>未发货
                                <elseif condition="$vo.status eq 3" />未收货
                                </if>
                                </td>
                                <td style="vertical-align: middle;text-align: center;">
                                    <a href="{$edit}?id={$vo['id']}" title="编辑" class="btn btn-primary"><i class="fa fa-edit"></i></a>
                                    <a href="{$del}?id={$vo['id']}" title="删除" class="btn btn-danger"><i class="fa fa-times"></i></a>
                                </td>
                            </tr>
                        </tbody>
                        </volist>
                    </table>
                </section>
            </div>
        </section>
        <div style="text-align: center;">{$Page->show()}</div>
    </div>
</div>
</div>
<!--body wrapper end-->
<include file="Common@Backend/footer" />